import { FastifyInstance } from "fastify";
import { Skill } from "@db";

export const skills = async (fastify: FastifyInstance) => {
    fastify.get("/skills", async (req, res) => {
        return res.send((await Skill.findAll()).map((skill) => skill.name));
    });
};
